package cn.tom.entity;

public class OrdItem {
    private int itemid;
    private int ordid;
    private Book book = new Book();
    private int num;
    private double price;

    public int getItemid() {
        return this.itemid;
    }

    public void setItemid(int itemid) {
        this.itemid = itemid;
    }

    public int getOrdid() {
        return this.ordid;
    }

    public void setOrdid(int ordid) {
        this.ordid = ordid;
    }

    public Book getBook() {
        return this.book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public int getNum() {
        return this.num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public double getPrice() {
        return this.price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String toString() {
        return "OrdItem{itemid=" + this.itemid + ", ordid=" + this.ordid + ", book=" + this.book + ", num=" + this.num + ", price=" + this.price + '}';
    }
}
